projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b957e16
)
GtkImage: do not leak metrics in baseline align
author
Paolo Borelli
<pborelli@gnome.org>
Sat, 27 Apr 2013 09:08:21 +0000
(11:08 +0200)
committer
Paolo Borelli
<pborelli@gnome.org>
Sat, 27 Apr 2013 11:59:29 +0000
(13:59 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=699020
gtk/gtkimage.c
patch
|
blob
|
history
diff --git
a/gtk/gtkimage.c
b/gtk/gtkimage.c
index f21f227309dbd1e80845b362eb0f245e3f7d961e..61c41b97eee8ce3c12505f66ed62d843f3a69116 100644
(file)
--- a/
gtk/gtkimage.c
+++ b/
gtk/gtkimage.c
@@
-1417,6
+1417,8
@@
gtk_image_get_baseline_align (GtkImage *image)
image->priv->baseline_align =
(float)pango_font_metrics_get_ascent (metrics) /
(pango_font_metrics_get_ascent (metrics) + pango_font_metrics_get_descent (metrics));
+
+ pango_font_metrics_unref (metrics);
}
return image->priv->baseline_align;